<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Carte mère:  Fichier source de src/config.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&#160;globale</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>src/config.h</h1>  </div>
</div>
<div class="contents">
<a href="config_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">//                                                                                                                                      //</span>
<a name="l00003"></a>00003 <span class="comment">//                        Programme embarqué du proto DRONE                                    //</span>
<a name="l00004"></a>00004 <span class="comment">//                                       Programme pour  dsPIC6014A                                     //      </span>
<a name="l00005"></a>00005 <span class="comment">//                                                                                                                                      //</span>
<a name="l00006"></a>00006 <span class="comment">**********************************************************************</span>
<a name="l00007"></a>00007 <span class="comment">**********************************************************************</span>
<a name="l00008"></a>00008 <span class="comment">// Programmeurs:            TANGUY Adrien &amp; Vercruysse P-a (GE5)                //</span>
<a name="l00009"></a>00009 <span class="comment">// PRT 2009                                                                                                                     //</span>
<a name="l00010"></a>00010 <span class="comment">*********************************************************************/</span>
<a name="l00011"></a>00011 <span class="comment">//********************************************************************</span>
<a name="l00012"></a>00012 <span class="comment">//Modifications :               SOMMER Nicolas (MIQ4)                                           //</span>
<a name="l00013"></a>00013 <span class="comment">// Stage drone 2010                                                                                                     //</span>
<a name="l00014"></a>00014 <span class="comment">//Restructuration et modifications : STRUB Guillaume (MIQ4)                     //</span>
<a name="l00015"></a>00015 <span class="comment">// Projet drone MIQ4 2010-2011                                                                          //</span>
<a name="l00016"></a>00016 <span class="comment">//*******************************************************************/</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef _CONFIG_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define _CONFIG_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="comment">/* Type de drone */</span><span class="comment"></span>
<a name="l00023"></a>00023 <span class="comment">//!Quadrirotor</span>
<a name="l00024"></a><a class="code" href="config_8h.html#ab56763f3cde91239b3b2f1e84a8730ae">00024</a> <span class="comment"></span><span class="preprocessor">#define QUADRIROTOR                     0</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="comment">//!Mulet en polystyrène Twinstar II</span>
<a name="l00026"></a><a class="code" href="config_8h.html#ab84901ce02348a12f77dd24675a9aee8">00026</a> <span class="comment"></span><span class="preprocessor">#define MULET_POLY                      1</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="comment">//!Moto-planeur MIQ</span>
<a name="l00028"></a><a class="code" href="config_8h.html#ac20d62410c4f5b77dbfa46936accd056">00028</a> <span class="comment"></span><span class="preprocessor">#define PLANEUR                         2</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="comment">//!Définit le type de drone pour lequel le programme est compilé</span>
<a name="l00030"></a><a class="code" href="config_8h.html#a75876a04eb1a1353c21eade9390cb6d7">00030</a> <span class="comment"></span><span class="preprocessor">#define TYPE_DRONE                      QUADRIROTOR     </span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>        
<a name="l00032"></a>00032 <span class="comment">/*  Gestion des communications avec DSPIC */</span><span class="comment"></span>
<a name="l00033"></a>00033 <span class="comment">//!Active la centrale inertielle (1 = Activer)</span>
<a name="l00034"></a><a class="code" href="config_8h.html#a652f732918751d421cd00672fbcf34e6">00034</a> <span class="comment"></span><span class="preprocessor">#define ENABLE_IMU                      1</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="comment">//!Active la communication par XBee (1 = Activer)</span>
<a name="l00036"></a><a class="code" href="config_8h.html#a422aa6caf03f6f596eeeb4bf39b3cf31">00036</a> <span class="comment"></span><span class="preprocessor">#define ENABLE_XBEE             1</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="comment">//!Active la réception de données de la carte capteurs (1 = Activer)</span>
<a name="l00038"></a><a class="code" href="config_8h.html#a62b74a1fd7e0654296beb317825b472d">00038</a> <span class="comment"></span><span class="preprocessor">#define ENABLE_CAPTEURS         1</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="comment">//!Active le suivi GPS autonome</span>
<a name="l00040"></a><a class="code" href="config_8h.html#a51a8f95d2f091999be5743fba5266756">00040</a> <span class="comment"></span><span class="preprocessor">#define SUIVI_AUTO                      1</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>        
<a name="l00042"></a>00042 <span class="comment">/* Gestion des fonctions du programme */</span><span class="comment"></span>
<a name="l00043"></a>00043 <span class="comment">//!Active les fonctionnalités de débogage (sortie texte par XBee) (1 = Activer)</span>
<a name="l00044"></a><a class="code" href="config_8h.html#a432138093c53d7580af9ec5c5dca387f">00044</a> <span class="comment"></span><span class="preprocessor">#define ENABLE_DEBUG            1</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="comment">//!Active la génération PPM sur les broches OCxRS (1 = Activer)</span>
<a name="l00046"></a><a class="code" href="config_8h.html#aff1662e14a01fca0be9aa363ea8a51bc">00046</a> <span class="comment"></span><span class="preprocessor">#define ENABLE_PPM                      1</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a>00048 <span class="comment">/*  Gestion vitesse PIC */</span><span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">//!Fréquence du quartz de la carte mère</span>
<a name="l00050"></a><a class="code" href="config_8h.html#a14e45fc99e497e6c82a9223e2ada4ff5">00050</a> <span class="comment"></span><span class="preprocessor">#define DSP_FOSC                        7372800</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="comment">//!Diviseur de la PLL</span>
<a name="l00052"></a><a class="code" href="config_8h.html#aad85f9592cab5c232155b7db0f2582b1">00052</a> <span class="comment"></span><span class="preprocessor">#define DSP_PLL                         16</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>        
<a name="l00054"></a>00054 <span class="comment">/*  Gestion vitesse UARTs*/</span><span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">//!Baudrate de l&#39;UART1, utilisé pour la communication par XBee</span>
<a name="l00056"></a><a class="code" href="config_8h.html#ae2872baf728976c31a00c4fa1b7dbc9a">00056</a> <span class="comment"></span><span class="preprocessor">#define DSP_U1BAUD                      115200 </span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="comment">//!Baudrate de l&#39;UART2, utilisé pour la centrale inertielle</span>
<a name="l00058"></a><a class="code" href="config_8h.html#a3de00734e134008116cf156b99a08b43">00058</a> <span class="comment"></span><span class="preprocessor">#define DSP_U2BAUD                      115200</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00060"></a>00060 <span class="comment">/* Attribution des broches aux LEDs */</span><span class="comment"></span>
<a name="l00061"></a>00061 <span class="comment">//!Commande de la LED rouge n°1</span>
<a name="l00062"></a><a class="code" href="config_8h.html#aef0d1691c131d175250f95336b478397">00062</a> <span class="comment"></span><span class="preprocessor">#define LEDR1                           (LATAbits.LATA12)</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="comment">//!Commande de la LED rouge n°2</span>
<a name="l00064"></a><a class="code" href="config_8h.html#adca3c0853cd1ce049692c31142d23fe6">00064</a> <span class="comment"></span><span class="preprocessor">#define LEDR2                           (LATAbits.LATA13)</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="comment">//!Commande de la LED verte n°1</span>
<a name="l00066"></a><a class="code" href="config_8h.html#aba1a3017a64be7f581b972d8c3187f09">00066</a> <span class="comment"></span><span class="preprocessor">#define LEDV1                           (LATBbits.LATB5)</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="comment">//!Commande de la LED verte n°2</span>
<a name="l00068"></a><a class="code" href="config_8h.html#a4c41493caec588a705e30a3a2cc9f265">00068</a> <span class="comment"></span><span class="preprocessor">#define LEDV2                           (LATBbits.LATB4)</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Wed Jan 5 2011 17:04:29 pour Carte mère par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
